<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>已办工作</title>
    <style type="text/css">
        .layui-tab-item {
            height: 100%;
        }

        .layui-tab-item iframe {
            border: 0;
            overflow: hidden;
            width: 100%;
            height: 100%;
            margin: 0;
            padding: 0;
        }

        #wfTab {
            width: 100%;
            height: 100%;
            background-color: #fff;
        }
    </style>
</head>
<body>

<div id="divBody">

    <div class="layui-tab layui-tab-card" style="width: 100%; height: 100%;" lay-filter="doneTab">
        <ul class="layui-tab-title">
            <li id="DONE_TYPE_SQ" class="layui-this">我的申请</li>
            <li id="DONE_TYPE_SP">我的审批</li>
        </ul>
        <div id="wfTab" class="layui-tab-content">
            <div class="layui-tab-item layui-show">

                <div style="height: 100%;">
                    <iframe id="mysq" src="MyApplyList.html?taskState=1"></iframe>
                </div>
            </div>
            <div class="layui-tab-item">

                <div style="height: 100%;">
                    <iframe id="mysp" src="MyDoneTaskList.html?taskState=2"></iframe>
                </div>
            </div>

            <!--</div>-->

        </div>
    </div>

</div>
<input id="" type="hidden"/>
<script src="/static/lib/layuiadmin/layui/layui.js"></script>
<script src="/static/lib/layuiadmin/layui/layui.all.js"></script>
<link rel="stylesheet" href="/static/lib/layuiadmin/layui/css/layui.css" media="all">
<link rel="stylesheet" href="/static/lib/layuiadmin/style/admin.css" media="all">


<script language="JavaScript">
    var $ = layui.$

    $(document).ready(function () {
        tabAutoFit()
    })

    $(window).resize(function () {
        tabAutoFit()
    })

    function tabAutoFit() {
        var wftab = document.getElementById("wfTab");
        wftab.style.width = (window.innerWidth - 32) + 'px';
        wftab.style.height = (window.innerHeight - 100) + 'px';
    }

</script>
</body>
</html>